const app = getApp()
Page({
	data: {
		url: app.globalData.host,
		content: {},
	},
	onLoad: function (options) {
		wx.setNavigationBarTitle({
			title: "预约协议"
		})
		this.getList();
	},
	getList(){
		wx.showLoading({title: '加载中…'});
		app.request({
			url: '/app/protocol',
			method: 'GET',
			success: res => {
				this.setData({
					content: res.data[0].protocolContent,
					title: res.data[0].title
				})
			}
		})
		wx.hideLoading();
	}
})
